package com.xyht.sca_s.student_manage_system.modules.inform.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class SmsInformDetailUpdateDto implements Serializable {
    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "事件主题")
    @NonNull
    private String eventTopic;

    @ApiModelProperty(value = "事件类型:  0紧急事件;1:普通事件")
    @NonNull
    private String eventType;

    @ApiModelProperty(value = "通知类型:  0:校园通知;1:班级通知;2:部门通知")
    @NonNull
    private String notificationType;

    @ApiModelProperty(value = "通知范围：1:组织2:角色3:人员")
    private Integer noticeType;

    @ApiModelProperty(value = "通知范围:组织,角色,人员")
    private String type;

    @ApiModelProperty(value = "通知范围：组织")
    private List<String> orgId;

    @ApiModelProperty(value = "通知范围：角色")
    private List<String> roleId;

    @ApiModelProperty(value = "通知范围：人员")
    private List<String> personnelId;

    @ApiModelProperty(value = "上传文件")
    private String uploadFiles;

    @ApiModelProperty(value = "通知内容")
    @NonNull
    private String content;

    @ApiModelProperty(value = "状态:  0: 过期;1有效")
    private String state;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;

    @ApiModelProperty(value = "截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;

    @ApiModelProperty(value = "封面图")
    private String cover;
}
